To create a master file, create an ASCII file, enter the appropriate information (described below), and move the file to the /usr/sysgen/master.d directory. The name of the master file must correspond to the name of the file containing the object code for the driver.
Ensure that the FLAG field of the master file includes at least the character device flag c and the software driver flag s. You must flag all SCSI device drivers as software drivers (drivers that do not control actual hardware) because lboot cannot probe for SCSI devices.[12] If lboot tries to probe for a SCSI device, it fails, then assumes that the device is not present, and does not include your SCSI device driver in the kernel.
For example, assume that you want your kernel to include a device driver for a SCSI device that you call sdk. Create the object code for the device driver, and move the sdk.o object file to the directory /usr/sysgen/boot. After examining /usr/include/sys/major.h, you determine that major device number 61 is available and can be used for the device, sdk. Create a file sdk.sm with the following line, and also add it to the system file:
You then create a master ASCII file called /usr/sysgen/master.d/sdk and enter:
* * sdk * *FLAG PREFIX SOFT #DEV DEPENDENCIES sc sdk_ 61 - scsiUnder "DEPENDENCIES," you must list "scsi." This indicates that the SCSI interface driver must be present. The SCSI interface is described later in this chapter.